package com.study;

import com.alibaba.fastjson.JSONObject;
import com.study.util.HttpUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        String url = "http://localhost:9009/services/zzj?wsdl";
        String soap = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ser=\"http://service.zzj.com\">" +
                "   <soapenv:Header/>" +
                "   <soapenv:Body>" +
                "      <ser:savePatientInfo>" +
                "         <!--Optional:-->" +
                "         <reqParams><![CDATA[<resquest>" +
                "  <flag>person</flag>" +
                "</resquest>]]></reqParams>" +
                "      </ser:savePatientInfo>" +
                "   </soapenv:Body>" +
                "</soapenv:Envelope>";
        String str = HttpUtils.sendWebService(url,soap);
        System.out.println(str);
    }
}
